using System;
using System.Collections.Generic;

namespace Model.Database
{
    [Serializable]
    public partial class Role
    {
        public Role()
        {
            this.Departments = new List<Department>();
            this.Powers = new List<Power>();
            this.UserInfoes = new List<UserInfo>();
        }

        public string RoleId { get; set; }
        public string RoleName { get; set; }
        public string Description { get; set; }
        public Nullable<System.DateTime> AddTime { get; set; }
        public Nullable<System.DateTime> ModifyTime { get; set; }
        public virtual ICollection<Department> Departments { get; set; }
        public virtual ICollection<Power> Powers { get; set; }
        public virtual ICollection<UserInfo> UserInfoes { get; set; }
    }
}
